package com.mp.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("annotation-start")
public interface ProviderFeign {

    @RequestMapping(value = "/demo/getHost", method = RequestMethod.POST,
            produces = "application/json; charset=UTF-8")
    JSONObject queryHost(@SpringQueryMap JSONObject params);
}
